3.6.31 \(\int \frac {x}{\sqrt {a^2+2 a b x^n+b^2 x^{2 n}}} \, dx\) [531]

Optimal. Leaf size=64 \[ \frac {x^2 \left (a+b x^n\right ) \, _2F_1\left (1,\frac {2}{n};\frac {2+n}{n};-\frac {b x^n}{a}\right )}{2 a \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}} \]

[Out]

1/2*x^2*(a+b*x^n)*hypergeom([1, 2/n],[(2+n)/n],-b*x^n/a)/a/(a^2+2*a*b*x^n+b^2*x^(2*n))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {1369, 371} \begin {gather*} \frac {x^2 \left (a+b x^n\right ) \, _2F_1\left (1,\frac {2}{n};\frac {n+2}{n};-\frac {b x^n}{a}\right )}{2 a \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x/Sqrt[a^2 + 2*a*b*x^n + b^2*x^(2*n)],x]

[Out]

(x^2*(a + b*x^n)*Hypergeometric2F1[1, 2/n, (2 + n)/n, -((b*x^n)/a)])/(2*a*Sqrt[a^2 + 2*a*b*x^n + b^2*x^(2*n)])

Rule 371

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*((c*x)^(m + 1)/(c*(m + 1)))*Hyperg
eometric2F1[-p, (m + 1)/n, (m + 1)/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 1369

Int[((d_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_.) + (c_.)*(x_)^(n2_.))^(p_), x_Symbol] :> Dist[(a + b*x^n + c*x^
(2*n))^FracPart[p]/(c^IntPart[p]*(b/2 + c*x^n)^(2*FracPart[p])), Int[(d*x)^m*(b/2 + c*x^n)^(2*p), x], x] /; Fr
eeQ[{a, b, c, d, m, n, p}, x] && EqQ[n2, 2*n] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p - 1/2]

Rubi steps

\begin {align*} \int \frac {x}{\sqrt {a^2+2 a b x^n+b^2 x^{2 n}}} \, dx &=\frac {\left (a b+b^2 x^n\right ) \int \frac {x}{a b+b^2 x^n} \, dx}{\sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}\\ &=\frac {x^2 \left (a+b x^n\right ) \, _2F_1\left (1,\frac {2}{n};\frac {2+n}{n};-\frac {b x^n}{a}\right )}{2 a \sqrt {a^2+2 a b x^n+b^2 x^{2 n}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 53, normalized size = 0.83 \begin {gather*} \frac {x^2 \left (a+b x^n\right ) \, _2F_1\left (1,\frac {2}{n};1+\frac {2}{n};-\frac {b x^n}{a}\right )}{2 a \sqrt {\left (a+b x^n\right )^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x/Sqrt[a^2 + 2*a*b*x^n + b^2*x^(2*n)],x]

[Out]

(x^2*(a + b*x^n)*Hypergeometric2F1[1, 2/n, 1 + 2/n, -((b*x^n)/a)])/(2*a*Sqrt[(a + b*x^n)^2])

________________________________________________________________________________________

Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {x}{\sqrt {a^{2}+2 a b \,x^{n}+b^{2} x^{2 n}}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(a^2+2*a*b*x^n+b^2*x^(2*n))^(1/2),x)

[Out]

int(x/(a^2+2*a*b*x^n+b^2*x^(2*n))^(1/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(a^2+2*a*b*x^n+b^2*x^(2*n))^(1/2),x, algorithm="maxima")

[Out]

integrate(x/sqrt(b^2*x^(2*n) + 2*a*b*x^n + a^2), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(a^2+2*a*b*x^n+b^2*x^(2*n))^(1/2),x, algorithm="fricas")

[Out]

integral(x/sqrt(b^2*x^(2*n) + 2*a*b*x^n + a^2), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{\sqrt {\left (a + b x^{n}\right )^{2}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(a**2+2*a*b*x**n+b**2*x**(2*n))**(1/2),x)

[Out]

Integral(x/sqrt((a + b*x**n)**2), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(a^2+2*a*b*x^n+b^2*x^(2*n))^(1/2),x, algorithm="giac")

[Out]

integrate(x/sqrt(b^2*x^(2*n) + 2*a*b*x^n + a^2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {x}{\sqrt {a^2+b^2\,x^{2\,n}+2\,a\,b\,x^n}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(a^2 + b^2*x^(2*n) + 2*a*b*x^n)^(1/2),x)

[Out]

int(x/(a^2 + b^2*x^(2*n) + 2*a*b*x^n)^(1/2), x)

________________________________________________________________________________________